package com.cqq.auth.dao;

import java.util.List;

import com.cqq.auth.dao.domain.Permission;
import com.cqq.common.core.interfaces.CommonDao;

/**
 * <h3>权限Dao接口</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
public interface PermissionDao extends CommonDao<Permission> {

	public List<Permission> queryAllBySystem(String systemCode);
	
	public List<Integer> queryIdsBySystem(String systemCode);
	
	public Permission queryByCode(String roleCode,String systemCode);
	
	public Permission queryByName(String name,String systemCode);
	
	public List<Permission> queryByUserId(Integer id,String systemCode);
	
	public List<Permission> queryByUsername(String username,String systemCode);
	
	public List<Permission> queryByRoleId(Integer id);
	
	public List<Permission> queryByParentId(Integer id,String systemCode);
}
